<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<base href="<%=basePath%>">

<title>添加信息</title>
<script type="text/javascript">
	function adds() {
		document.getElementById("addTab").lastChild.innerHTML;
	}
</script>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

</head>

<body>
	<input type="button" value="返回登录界面"
		onclick="location.href('login.jsp')">
	<form action="addcons" method="post" name="add">
		<div align="center">
			<font color="#ff8040" size="6" face="华文行楷"><br> <font
				color="#008000">你娃娃买了些啥？</font> <br> <br> </font>
		</div>
		<table align="center" id="addTab" width="627" height="55" border="1"
			cellpadding="0" cellspacing="0" bordercolor="#395965">
			<tr>
				<td width="200px" align="center">名称</td>
				<td width="120px" align="center">花费</td>
				<td width="500px" align="center">&nbsp;&nbsp;&nbsp; 备注
					&nbsp;&nbsp;</td>
			</tr>
			<tr>
				<td><input type="text" name="cname" size="22">
				</td>
				<td><input type="text" name="cprice" size="12">
				</td>
				<td><input type="text" name="remark" size="42">
				</td>
			</tr>
		</table>
		<div align="center">
			<input align="right" type="button" value="再添一条" onclick="adds();">
			&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <input align="right"
				type="submit" value="添加">
		</div>
	</form>
</body>
</html>
